package com.sola.jdbc.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.sola.jdbc.bean.Uesr;
import com.sola.jdbc.service.IuserService;


@RestController
@RequestMapping("/user")
public class UserController {

	@Autowired
	private IuserService userService;
	
	@RequestMapping("update")
	public String updateUser(){
		Uesr user = new Uesr();
		user.setPassword("123456");
		user.setId("1231311012");
		int count = userService.update(user);
		return count+"";
	}
}
